﻿package Message.Public
{
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SLotteryRecord extends Object
    {
        public var entityId:SEntityId;
        public var playerName:String;
        public var lotteryItems:Dictionary;
        public var type:int;
        public var lotteryGold:Dictionary;
        public var level:int;
        public var recordDt:Date;

        public function SLotteryRecord()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            param1.writeString(this.playerName);
            DictIntIntHelper.write(param1, this.lotteryItems);
            param1.writeInt(this.type);
            DictIntIntHelper.write(param1, this.lotteryGold);
            param1.writeInt(this.level);
            param1.writeDate(this.recordDt);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.playerName = param1.readString();
            this.lotteryItems = DictIntIntHelper.read(param1);
            this.type = param1.readInt();
            this.lotteryGold = DictIntIntHelper.read(param1);
            this.level = param1.readInt();
            this.recordDt = param1.readDate();
            return;
        }// end function

    }
}
